package com.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文件实体")
@TableName(value = "document")
public class Document extends BaseEntity {
    @ApiModelProperty(value = "文件名称", example = "行为准则.doc")
    private String name;

    @ApiModelProperty(value = "文件路径", example = "/home/class1/行为准则.doc")
    private String path;

    @ApiModelProperty(value = "文件类型id", example = "1(文件夹) 2(文件) ")
    private Integer roleId;

    @ApiModelProperty(value = "父文件夹id", example = "1L")
    private Long superId;

    @ApiModelProperty(value = "文件大小(kb)", example = "1024")
    private Double capacity;

    @ApiModelProperty(value = "文件列表")
    @TableField(exist = false)
    private List<Document> documentList;

    @ApiModelProperty(value = "资源库id", example = "1L")
    private Long storeHouseId;

}
